
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>消息总线-Bus · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-sidebar-style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="15.消息驱动-stream.html" />
    
    
    <link rel="prev" href="13.配置中心-Config.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">基础篇</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../java基础/IO流基础.html">
            
                <a href="../java基础/IO流基础.html">
            
                    
                    IO流基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../java基础/集合.html">
            
                <a href="../java基础/集合.html">
            
                    
                    集合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../java基础/异常处理.html">
            
                <a href="../java基础/异常处理.html">
            
                    
                    异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../java基础/线程.html">
            
                <a href="../java基础/线程.html">
            
                    
                    线程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../java基础/网络编程.html">
            
                <a href="../java基础/网络编程.html">
            
                    
                    网络编程
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">进阶篇</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../java进阶/MySQL.html">
            
                <a href="../java进阶/MySQL.html">
            
                    
                    MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../java进阶/Oracle.html">
            
                <a href="../java进阶/Oracle.html">
            
                    
                    Oracle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../java进阶/Redis.html">
            
                <a href="../java进阶/Redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../java进阶/Netty.html">
            
                <a href="../java进阶/Netty.html">
            
                    
                    Netty
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="../java进阶/Spring.html">
            
                <a href="../java进阶/Spring.html">
            
                    
                    Spring
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="../java进阶/SpringMVC.html">
            
                <a href="../java进阶/SpringMVC.html">
            
                    
                    SpringMVC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="../java进阶/单元测试.html">
            
                <a href="../java进阶/单元测试.html">
            
                    
                    SpringBoot单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="../java进阶/设计模式.html">
            
                <a href="../java进阶/设计模式.html">
            
                    
                    二十三个设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.8.1" data-path="../java进阶/工厂模式.html">
            
                <a href="../java进阶/工厂模式.html">
            
                    
                    工厂模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.2" data-path="../java进阶/单例模式.html">
            
                <a href="../java进阶/单例模式.html">
            
                    
                    单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.3" data-path="../java进阶/建造者模式.html">
            
                <a href="../java进阶/建造者模式.html">
            
                    
                    建造者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.4" data-path="../java进阶/原型模式.html">
            
                <a href="../java进阶/原型模式.html">
            
                    
                    原型模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.5" data-path="../java进阶/适配器模式.html">
            
                <a href="../java进阶/适配器模式.html">
            
                    
                    适配器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.6" data-path="../java进阶/责任链模式.html">
            
                <a href="../java进阶/责任链模式.html">
            
                    
                    责任链模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.7" data-path="../java进阶/桥接模式.html">
            
                <a href="../java进阶/桥接模式.html">
            
                    
                    桥接模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">高级篇</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="1.cloud架构选型.html">
            
                <a href="1.cloud架构选型.html">
            
                    
                    Spring Cloud
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="2.Provider-支付模块.html">
            
                <a href="2.Provider-支付模块.html">
            
                    
                    Provider-支付模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="3.Consumer-订单模块.html">
            
                <a href="3.Consumer-订单模块.html">
            
                    
                    Consumer-订单模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.3" data-path="4.重构-Common模块.html">
            
                <a href="4.重构-Common模块.html">
            
                    
                    重构-Common模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.4" data-path="5.注册中心-Enreka.html">
            
                <a href="5.注册中心-Enreka.html">
            
                    
                    注册中心-Enreka
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.5" data-path="6.负载均衡-@LoadBalance.html">
            
                <a href="6.负载均衡-@LoadBalance.html">
            
                    
                    负载均衡-@LoadBalance
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.6" data-path="7.更换注册中心-Zookeeper.html">
            
                <a href="7.更换注册中心-Zookeeper.html">
            
                    
                    更换注册中心-Zookeeper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.7" data-path="8.更换注册中心-Consul.html">
            
                <a href="8.更换注册中心-Consul.html">
            
                    
                    更换注册中心-Consul
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.8" data-path="9.负载均衡-Ribbon.html">
            
                <a href="9.负载均衡-Ribbon.html">
            
                    
                    负载均衡-Ribbon
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.9" data-path="10.服务调用-OpenFeign.html">
            
                <a href="10.服务调用-OpenFeign.html">
            
                    
                    服务调用-OpenFeign
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.10" data-path="11.熔断器-Hystrix.html">
            
                <a href="11.熔断器-Hystrix.html">
            
                    
                    熔断器-Hystrix
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.11" data-path="12.网关-Gateway.html">
            
                <a href="12.网关-Gateway.html">
            
                    
                    网关-Gateway
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.12" data-path="13.配置中心-Config.html">
            
                <a href="13.配置中心-Config.html">
            
                    
                    配置中心-Config
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="4.1.13" data-path="14.消息总线-bus.html">
            
                <a href="14.消息总线-bus.html">
            
                    
                    消息总线-Bus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.14" data-path="15.消息驱动-stream.html">
            
                <a href="15.消息驱动-stream.html">
            
                    
                    消息驱动-Stream
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.15" data-path="16.链路监控-Sleuth.html">
            
                <a href="16.链路监控-Sleuth.html">
            
                    
                    链路监控-Sleuth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.16" data-path="17.注册中心&配置中心-nacos.html">
            
                <a href="17.注册中心&配置中心-nacos.html">
            
                    
                    注册中心&配置中心-nacos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.17" data-path="18.限流-sentinel.html">
            
                <a href="18.限流-sentinel.html">
            
                    
                    限流-sentinel
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../java高级/JUC.html">
            
                <a href="../java高级/JUC.html">
            
                    
                    神秘的JUC包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../java高级/Docker.html">
            
                <a href="../java高级/Docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../java高级/布隆过滤器.html">
            
                <a href="../java高级/布隆过滤器.html">
            
                    
                    布隆过滤器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../java高级/Redission.html">
            
                <a href="../java高级/Redission.html">
            
                    
                    Redission
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="../java高级/MQ.html">
            
                <a href="../java高级/MQ.html">
            
                    
                    消息队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.7" data-path="../java高级/JVM.html">
            
                <a href="../java高级/JVM.html">
            
                    
                    JVM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.8" data-path="../java书籍/《Effective Java》读书笔记.html">
            
                <a href="../java书籍/《Effective Java》读书笔记.html">
            
                    
                    《Effective Java》读书笔记 
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.8.1" data-path="../java书籍/创建和销毁对象.html">
            
                <a href="../java书籍/创建和销毁对象.html">
            
                    
                    创建和销毁对象
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">番外篇</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../java面试/面试题.html">
            
                <a href="../java面试/面试题.html">
            
                    
                    面试题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../番外篇/小程序.html">
            
                <a href="../番外篇/小程序.html">
            
                    
                    微信小程序
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >消息总线-Bus</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="1&#x6982;&#x8FF0;"><a name="1&#x6982;&#x8FF0;" class="plugin-anchor" href="#1&#x6982;&#x8FF0;"><i class="fa fa-link" aria-hidden="true"></i></a>1.&#x6982;&#x8FF0;</h2>
<p>Spring Cloud Bus &#x662F;&#x7528;&#x6765;&#x5C06;&#x5206;&#x5E03;&#x5F0F;&#x7CFB;&#x7EDF;&#x7684;&#x8282;&#x70B9;&#x4E0E;&#x8F7B;&#x91CF;&#x7EA7;&#x6D88;&#x606F;&#x7CFB;&#x7EDF;&#x8FDE;&#x63A5;&#x8D77;&#x6765;&#x7684;&#x6846;&#x67B6;&#xFF0C;&#x5B83;&#x6574;&#x5408;&#x4E86;Java&#x7684;&#x4E8B;&#x4EF6;&#x5904;&#x7406;&#x673A;&#x5236;&#x548C;&#x6D88;&#x606F;&#x4E2D;&#x95F4;&#x4EF6;&#x7684;&#x529F;&#x80FD;&#x3002;Spring Cloud Bus &#x76EE;&#x524D;&#x652F;&#x6301;Ribbit MQ&#x548C;Kafka&#x3002;</p>
<p><strong>&#x4EC0;&#x4E48;&#x662F;&#x603B;&#x7EBF;</strong></p>
<p>&#x5728;&#x5FAE;&#x670D;&#x52A1;&#x67B6;&#x6784;&#x7684;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;&#x901A;&#x5E38;&#x4F1A;&#x4F7F;&#x7528;&#x8F7B;&#x91CF;&#x7EA7;&#x7684;&#x6D88;&#x606F;&#x4EE3;&#x7406;&#x6765;&#x6784;&#x5EFA;&#x4E00;&#x4E2A;&#x516C;&#x7528;&#x7684;&#x6D88;&#x606F;&#x4E3B;&#x9898;&#xFF0C;&#x5E76;&#x8BA9;&#x7CFB;&#x7EDF;&#x4E2D;&#x6240;&#x6709;&#x5FAE;&#x670D;&#x52A1;&#x5B9E;&#x4F8B;&#x90FD;&#x94FE;&#x63A5;&#x4E0A;&#x6765;&#x3002;&#x7531;&#x4E8E;&#x8BE5;&#x4E3B;&#x9898;&#x4E2D;&#x4EA7;&#x751F;&#x7684;&#x6D88;&#x606F;&#x4F1A;&#x88AB;&#x6240;&#x6709;&#x7684;&#x5B9E;&#x4F8B;&#x76D1;&#x542C;&#x548C;&#x6D88;&#x8D39;&#xFF0C;&#x6240;&#x4EE5;&#x79F0;&#x5B83;&#x4E3A;&#x6D88;&#x606F;&#x603B;&#x7EBF;&#x3002;&#x5728;&#x603B;&#x7EBF;&#x7684;&#x5404;&#x4E2A;&#x5B9E;&#x4F8B;&#xFF0C;&#x90FD;&#x53EF;&#x4EE5;&#x65B9;&#x4FBF;&#x5730;&#x5E7F;&#x64AD;&#x4E00;&#x4E9B;&#x9700;&#x8981;&#x5176;&#x4ED6;&#x5B9E;&#x4F8B;&#x90FD;&#x77E5;&#x9053;&#x7684;&#x6D88;&#x606F;&#x3002;</p>
<h2 id="2rabbitmq&#x73AF;&#x5883;"><a name="2rabbitmq&#x73AF;&#x5883;" class="plugin-anchor" href="#2rabbitmq&#x73AF;&#x5883;"><i class="fa fa-link" aria-hidden="true"></i></a>2.RabbitMQ&#x73AF;&#x5883;</h2>
<p>&#x6211;&#x7528;Docker&#x5B89;&#x88C5;&#x7684;&#xFF0C;&#x5B89;&#x88C5;Docker&#x8BF7;&#x67E5;&#x770B;&#x9AD8;&#x7EA7;&#x7BC7;/Docker</p>
<p><strong>&#x62C9;&#x53D6;&#x955C;&#x50CF;</strong></p>
<pre><code class="lang-shell">docker pull rabbitmq:management
</code></pre>
<p><strong>&#x62C9;&#x53D6;&#x5B8C;&#x6BD5;&#x540E;&#xFF1A;</strong></p>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h3zkdvvbq8j20vc0i8jv5.jpg" alt=""></p>
<p><strong>&#x542F;&#x52A8;&#x955C;&#x50CF;</strong></p>
<pre><code class="lang-shell">docker run -d -p 5672:5672 -p 15672:15672 --name rabbitmq rabbitmq:management
</code></pre>
<p><strong>&#x8BBF;&#x95EE;&#x6D4B;&#x8BD5;</strong></p>
<p>&#x6267;&#x884C;&#x5982;&#x4E0A;&#x547D;&#x4EE4;&#x540E;&#x8BBF;&#x95EE;&#xFF1A;<a href="http://ip:15672/" target="_blank">http://ip:15672/</a>   &#x9ED8;&#x8BA4;&#x8D26;&#x53F7;&#x5BC6;&#x7801;&#xFF1A;guest/guest</p>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h3zklz3xg2j20qe0bcdg5.jpg" alt=""></p>
<h2 id="3&#x96C6;&#x6210;bus"><a name="3&#x96C6;&#x6210;bus" class="plugin-anchor" href="#3&#x96C6;&#x6210;bus"><i class="fa fa-link" aria-hidden="true"></i></a>3.&#x96C6;&#x6210;Bus</h2>
<p><strong>&#x4FEE;&#x6539;3344&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;server&#x7AEF;</strong></p>
<p><strong>pom&#x589E;&#x52A0;&#x4F9D;&#x8D56;</strong></p>
<pre><code class="lang-xml"><span class="hljs-comment">&lt;!--&#x6D88;&#x606F;&#x603B;&#x7EBF;RabbitMQ--&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-bus-amqp<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
</code></pre>
<p><strong>application.yml&#x4E2D;&#x589E;&#x52A0;</strong></p>
<pre><code class="lang-yml"><span class="hljs-comment">#rabbitMQ&#x76F8;&#x5173;&#x914D;&#x7F6E;</span>
<span class="hljs-attr">spring:</span>
<span class="hljs-attr">  rabbitmq:</span>
<span class="hljs-attr">    host:</span> ip
<span class="hljs-attr">    port:</span> <span class="hljs-number">5672</span>
<span class="hljs-attr">    username:</span> guest
<span class="hljs-attr">    password:</span> guest

<span class="hljs-comment"># &#x66B4;&#x9732;&#x76D1;&#x63A7;&#x7AEF;&#x70B9;</span>
<span class="hljs-attr">management:</span>
<span class="hljs-attr">  endpoints:</span>
<span class="hljs-attr">    web:</span>
<span class="hljs-attr">      exposure:</span>
<span class="hljs-attr">        include:</span> <span class="hljs-string">&quot;bus-refresh&quot;</span>
</code></pre>
<p>&#x26A0;&#xFE0F; rabbit &#x7AEF;&#x53E3;&#x53F7;&#x95EE;&#x9898;</p>
<blockquote>
<p>15672 &#x662F;web&#x7AEF;&#x7684;&#x8BBF;&#x95EE;&#x7AEF;&#x53E3;&#xFF0C;&#x800C;5672&#x662F;&#x4EE3;&#x7801;&#x8FDE;&#x63A5;&#x7AEF;&#x53E3;</p>
<p>&#x5982;&#x679C;&#x5199;&#x9519;&#x4E86;&#x4F1A;&#x53D1;&#x751F; Attempting to connect to: [localhost:15672]</p>
</blockquote>
<p><strong>&#x4FEE;&#x6539;80&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;client&#x7AEF;</strong></p>
<p><strong>pom&#x589E;&#x52A0;&#x4F9D;&#x8D56;</strong></p>
<pre><code class="lang-xml"><span class="hljs-comment">&lt;!--&#x6D88;&#x606F;&#x603B;&#x7EBF;RabbitMQ--&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
   <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
   <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-bus-amqp<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
</code></pre>
<p><strong>bootstrap.yml &#x589E;&#x52A0;</strong></p>
<pre><code class="lang-yml"><span class="hljs-comment">#rabbitMQ&#x76F8;&#x5173;&#x914D;&#x7F6E;</span>
<span class="hljs-attr">spring:</span>  
<span class="hljs-attr">  rabbitmq:</span>
<span class="hljs-attr">    host:</span> ip
<span class="hljs-attr">    port:</span> <span class="hljs-number">5672</span>
<span class="hljs-attr">    username:</span> guest
<span class="hljs-attr">    password:</span> guest
</code></pre>
<h2 id="4&#x8C03;&#x7528;&#x6D4B;&#x8BD5;"><a name="4&#x8C03;&#x7528;&#x6D4B;&#x8BD5;" class="plugin-anchor" href="#4&#x8C03;&#x7528;&#x6D4B;&#x8BD5;"><i class="fa fa-link" aria-hidden="true"></i></a>4.&#x8C03;&#x7528;&#x6D4B;&#x8BD5;</h2>
<p><strong>&#x4FEE;&#x6539;&#x524D;&#xFF0C;&#x670D;&#x52A1;&#x7AEF;</strong></p>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h3zme0xzddj20oq0i6dgy.jpg" alt=""></p>
<p><strong>&#x4FEE;&#x6539;&#x540E;&#xFF0C;&#x670D;&#x52A1;&#x7AEF;</strong></p>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h3zmerd0ptj20po0g03zi.jpg" alt=""></p>
<p><strong>&#x4FEE;&#x6539;&#x540E;&#xFF0C;&#x5BA2;&#x6237;&#x7AEF;&#x67E5;&#x8BE2;</strong></p>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h3zmfjfd77j20ma0dkq3q.jpg" alt=""></p>
<p><strong>&#x53D1;&#x9001;&#x5237;&#x65B0;&#xFF0C;&#x6CE8;&#x610F;&#x5237;&#x65B0;&#x7AEF;&#x53E3;&#x53D1;&#x9001;&#x7684;&#x662F;&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;server&#x7AEF;&#x7684;</strong></p>
<blockquote>
<p>post &#x8BF7;&#x6C42;&#x53D1;&#x9001; <a href="http://ip:&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;&#x670D;&#x52A1;&#x7AEF;&#x7AEF;&#x53E3;/actuator/bus-refresh" target="_blank">http://ip:&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;&#x670D;&#x52A1;&#x7AEF;&#x7AEF;&#x53E3;/actuator/bus-refresh</a></p>
<p>&#x5982;&#x679C;&#x5B9A;&#x70B9;&#x5237;&#x65B0; &#x5219;&#x53D1;&#x9001; <a href="http://ip:&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;&#x670D;&#x52A1;&#x7AEF;&#x7AEF;&#x53E3;/actuator/bus-refresh/&#x670D;&#x52A1;&#x540D;:&#x7AEF;&#x53E3;,&#x670D;&#x52A1;&#x540D;:&#x7AEF;&#x53E3;" target="_blank">http://ip:&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;&#x670D;&#x52A1;&#x7AEF;&#x7AEF;&#x53E3;/actuator/bus-refresh/&#x670D;&#x52A1;&#x540D;:&#x7AEF;&#x53E3;,&#x670D;&#x52A1;&#x540D;:&#x7AEF;&#x53E3;</a>...</p>
</blockquote>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h3zmtbxaxoj20ng0c4q3i.jpg" alt=""></p>
<p><strong>&#x518D;&#x6B21;&#x67E5;&#x8BE2;&#x914D;&#x7F6E;&#x4E2D;&#x5FC3;&#x5BA2;&#x6237;&#x7AEF;</strong></p>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h3zmtpg3yfj20pc0dwwfc.jpg" alt=""></p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; mine 2022-2025 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2022-07-12 10:57:01
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="13.配置中心-Config.html" class="navigation navigation-prev " aria-label="Previous page: 配置中心-Config">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="15.消息驱动-stream.html" class="navigation navigation-next " aria-label="Next page: 消息驱动-Stream">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"消息总线-Bus","level":"4.1.13","depth":2,"next":{"title":"消息驱动-Stream","level":"4.1.14","depth":2,"path":"springcloud/15.消息驱动-stream.md","ref":"springcloud/15.消息驱动-stream.md","articles":[]},"previous":{"title":"配置中心-Config","level":"4.1.12","depth":2,"path":"springcloud/13.配置中心-Config.md","ref":"springcloud/13.配置中心-Config.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["back-to-top-button","code","splitter","expandable-chapters-small","anchors","theme-comscore","tbfed-pagefooter","sidebar-style","pageview-count","popup"],"pluginsConfig":{"sidebar-style":{"author":"梁兴龙","title":"《Java 笔记本》"},"tbfed-pagefooter":{"copyright":"Copyright &copy mine 2022-2025","modify_label":"文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"splitter":{},"search":{},"popup":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-comscore":{},"back-to-top-button":{},"pageview-count":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"springcloud/14.消息总线-bus.md","mtime":"2022-07-12T02:57:01.979Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-08-22T03:22:22.085Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sidebar-style/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

